package com.game.framework.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.game.framework.dao.entity.ActivityPlayerEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p> * 角色表 Mapper 接口 * </p>
 */
@Mapper
public interface ActivityPlayerMapper extends BaseMapper<ActivityPlayerEntity> {

    Integer updateById(ActivityPlayerEntity entity);

    List<ActivityPlayerEntity> selectListByActivityId(@Param("activityId") Long activityId);

    void deleteAllByActivityId(@Param("activityId") Long activityId);

    int selectCountByActivityId(@Param("activityId") Long activityId);

    List<ActivityPlayerEntity> selectByMap(Map<String, Object> sqlMap);

    int selectCountByMap(Map<String, Object> sqlMap);
}